package bookdata;

public class ReBook {
    private String bookid;
    private String readerid;
    private String readername;
    private String bookname;
    private int year;
    private int mouth;
    private int day;

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public String getReadername() {
        return readername;
    }

    public void setReadername(String readername) {
        this.readername = readername;
    }

    public String getBookid() {
        return bookid;
    }

    public void setBookid(String bookid) {
        this.bookid = bookid;
    }

    public String getReaderid() {
        return readerid;
    }

    public void setReaderid(String readerid) {
        this.readerid =readerid;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getMouth() {
        return mouth;
    }

    public void setMouth(int mouth) {
        this.mouth = mouth;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }
    public ReBook(String bookid,String readerid,String readername,String bookname, int year,int mouth,int day){
        this.bookid=bookid;
        this.readerid=readerid;
        this.readername=readername;
        this.bookname=bookname;
        this.year=year;
        this.mouth=mouth;
        this.day=day;

    }

    @Override
    public String toString() {
        return "书号:"+bookid+"  书名"+bookname+" 读者号: "+readerid+"  读者姓名:"+readername+"   借书时间:"+year+mouth+day;
    }
}
